import request from "@/utils/request";

// 商品分类列表
const getCates = (params = {}) => request.get('/cateLists', {params})
// 新增商品分类
const addCates = (params = {}) => request.post('/addCate', params)
// 删除商品分类 id 
const deleteCate = (params = {}) => request.delete('/deleteCate', params)
// 修改商品分类 id
const changeCateDetail =  (params = {}) => request.put('/updateCate', params)
// 获取分类详情
const getCateDetail = (params = {}) => request.get('/getCate', { params })
export {
    getCates,
    addCates,
    deleteCate,
    changeCateDetail,
    getCateDetail
}